package net.gxnun.xiaoyuan.core.share;

import java.net.URL;

import net.gxnun.xiaoyuan.core.utils.PropertiesUtils;

/**
 * 用户消息中特殊的标识，如“#”代表进入目录的前缀
 * @author yesheng
 *
 */
public class TextPrefix {
    
    private static PropertiesUtils propertiesUtils;
    
    static{
        URL url = TextPrefix.class.getResource("/");
        propertiesUtils = new PropertiesUtils(url.getPath()+"text_prefix.properties");
    }
    
    /**
     * 通过Key返回对应的前缀，前缀定义在text_prefix.properties当中.
     * @param key
     * @return
     */
    public static String getTextPrefix(String key){
        return propertiesUtils.getValue(key);
    }
    
}
